package com.core.entities;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * The persistent class for the CODEVALUE_T database table.
 * 
 */
@Entity
@Table(name = "CODEVALUE_T", schema = "CORE")
public class CodevalueT implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "OBJECT_ID", unique = true, nullable = false, precision = 25)
	private long objectId;

	@Column(name = "CODE", nullable = false)
	private String code;

	@Column(name = "DATE_CHANGED")
	private Date dateChanged;

	@Column(name = "SEQ_NUM")
	private Integer seqNum;

	@Column(name = "DATE_CREATED")
	private Date dateCreated;

	@Column(name = "LONGDESC", nullable = false)
	private String longdesc;

	@Column(name = "ROW_CHANGED_BY")
	private String rowChangedBy;

	@Column(name = "ROW_CREATED_BY")
	private String rowCreatedBy;

	@Column(name = "SHORTDESC", nullable = false)
	private String shortdesc;

	// bi-directional many-to-one association to CodegroupT
	@ManyToOne
	@JoinColumn(name = "GROUP_OID", nullable = false)
	private CodegroupT codegroupT;

	public CodevalueT() {
	}

	public long getObjectId() {
		return objectId;
	}

	public void setObjectId(long objectId) {
		this.objectId = objectId;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Integer getSeqNum() {
		return seqNum;
	}

	public void setSeqNum(Integer seqNum) {
		this.seqNum = seqNum;
	}

	public Date getDateChanged() {
		return dateChanged;
	}

	public void setDateChanged(Date dateChanged) {
		this.dateChanged = dateChanged;
	}

	public Date getDateCreated() {
		return dateCreated;
	}

	public void setDateCreated(Date dateCreated) {
		this.dateCreated = dateCreated;
	}

	public String getLongdesc() {
		return longdesc;
	}

	public void setLongdesc(String longdesc) {
		this.longdesc = longdesc;
	}

	public String getRowChangedBy() {
		return rowChangedBy;
	}

	public void setRowChangedBy(String rowChangedBy) {
		this.rowChangedBy = rowChangedBy;
	}

	public String getRowCreatedBy() {
		return rowCreatedBy;
	}

	public void setRowCreatedBy(String rowCreatedBy) {
		this.rowCreatedBy = rowCreatedBy;
	}

	public String getShortdesc() {
		return shortdesc;
	}

	public void setShortdesc(String shortdesc) {
		this.shortdesc = shortdesc;
	}

	public CodegroupT getCodegroupT() {
		return codegroupT;
	}

	public void setCodegroupT(CodegroupT codegroupT) {
		this.codegroupT = codegroupT;
	}

}